import dayjs from 'dayjs'

export function formatTime (time, format = 1) {
  if (format === 1) {
    return dayjs(time).format('YYYY年MM月DD日')
  } else {
    return dayjs(time).format('YYYY-MM-DD')
  }
}
